// Copyright 2023 Srhino Co., Ltd. All rights reserved.

package v3

import (
	v2 "git.ouryun.cn/lzj1/grpc-bidirectional-stream/pkg/apis/v2"
)

type StreamData struct {
	Requests  chan *v2.StreamMessage
	Responses chan *v2.StreamMessage
}

func NewStreamData() *StreamData {
	return &StreamData{
		Requests:  make(chan *v2.StreamMessage, 100),
		Responses: make(chan *v2.StreamMessage, 100),
	}
}
